package won.user;

public abstract class AbstractBook implements  BookInterface{
        protected String bookName;
        protected int dailyFine;
        protected java.sql.Date borrowDate;
        protected String status;
        protected String type;

        // 默认构造函数
        public AbstractBook() {

        }

        // 带参数的构造函数
        public AbstractBook( String bookName, int dailyFine, java.sql.Date borrowDate, String status, String type) {
            this.bookName = bookName;
            this.dailyFine = dailyFine;
            this.borrowDate = borrowDate;
            this.status = status;
            this.type = type;
        }

        @Override
        public String getBookName() {
            return bookName;
        }

        @Override
        public void setBookName(String bookName) {
            this.bookName = bookName;
        }

        @Override
        public int getDailyFine() {
            return dailyFine;
        }

        @Override
        public void setDailyFine(int dailyFine) {
            this.dailyFine = dailyFine;
        }

        @Override
        public java.sql.Date getBorrowDate() {
            return borrowDate;
        }

        @Override
        public void setBorrowDate(java.sql.Date borrowDate) {
            this.borrowDate = borrowDate;
        }

        @Override
        public String getStatus() {
            return status;
        }

        @Override
        public void setStatus(String status) {
            this.status = status;
        }

        @Override
        public String getType() {
            return type;
        }

        @Override
        public void setType(String type) {
            this.type = type;
        }

        // 可以添加更多的抽象方法或具体方法

}
